Residual current detecting (rcd) and ground impedance monitoring transformer and control methods

ABSTRACT

Systems, devices, and methods for a transformer including: a first drive winding ( 206 ) wound on a first core; a second drive winding wound on a second core; a sense winding wound across the first and second cores; and a compensation winding wound across the first and second cores; where one or more utility lines are threaded through a middle of the first and second cores, a common mode current in the one or more utility lines causes one or more pulses to appear on the sense winding, a current on the compensation winding is adjusted until the one or more pulses on the sense winding are cancelled out, and the common mode current on the one or more utility lines is the adjusted current on the compensation winding multiplied by a turn ratio between the compensation winding and the sense winding.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims priority to and the benefit of U.S. ProvisionalPatent Application No. 62/346,287, filed Jun. 6, 2016, the contents ofwhich are hereby incorporated by reference herein for all purposes.

TECHNICAL FIELD

Embodiments relate generally to systems, methods, and devices for safecharging, and more particularly to residual current detection (RCD) andground monitor interrupter (GMI).

BACKGROUND

Residual current detection (RCD) and ground monitor interrupter (GMI)are essential functions for safe charging of electric vehicles. The RCDis responsible for interrupting AC power should a conduction path toground appear in the charging circuit. For example, a person touchinglive components of an electric vehicle (EV) may cause a conduction pathto ground.

The GMI ensures that the ground connection between the EV charger and autility is continuous and of low impedance. The GMI interrupts AC powerto the EV if the ground connection is non-continuous or has highimpedance. High impedance or open ground connections may result indangerous high voltages appearing on the chassis of the EV.

Conventional methods for detecting residual leakage current rely oncurrent transformers, which may be sensitive to AC leakage currents, butcan saturate and fail to operate should DC leakage current be present.EV and solar installations may contain dangerously high DC voltages thatmay cause DC leakage current to be present.

SUMMARY

Exemplary device embodiments may include a transformer including: afirst drive winding wound on a first core, where the first drive windingmay be driven with a first high frequency square wave current; a seconddrive winding wound on a second core, where the second drive winding maybe driven with a second high frequency square wave current, and wherethe second high frequency square wave current may have an oppositepolarity of the first high frequency square wave current; a sensewinding wound across the first and second cores; and a compensationwinding wound across the first and second cores; where one or moreutility lines are threaded through a middle of the first and secondcores, wherein a common mode current in the one or more utility linescauses one or more pulses to appear on the sense winding, wherein acurrent on the compensation winding is adjusted until the one or morepulses on the sense winding are cancelled out, and wherein the commonmode current on the one or more utility lines is the adjusted current onthe compensation winding multiplied by a turn ratio between thecompensation winding and the sense winding.

In additional device embodiments, a net flux through the sense windingmay be zero if no common mode current is present on the one or moreutility lines. A saturation flux density of the first core may besubstantially equal to the saturation flux density of the second core. Asaturation flux density of the first core may be within 10% of thesaturation flux density of the second core. The first core may have alower saturation flux density than the second core, and the first drivewinding may be driven with less current than the second drive windingsuch that the first core saturates at substantially the same time as thesecond core. The first drive winding may apply a high frequency signalto the one or more utility lines and the second drive winding maymeasure an amplitude of a current that results, where the amplitude ofthe current that results may be proportional to a reciprocal of a groundloop impedance. The common mode current in the utility line may be atleast one of: an AC residual leakage current and a DC residual leakagecurrent. The first core may be disposed substantially parallel to thesecond core.

Exemplary method embodiments may include: providing a first highfrequency square wave current to a first drive winding wound on a firstcore; providing a second high frequency square wave current to a seconddrive winding wound on a second core, where the second high frequencysquare wave current may have an opposite polarity of the first highfrequency square wave current; sensing one or more pulses on a sensewinding wound about the first and second cores, where the one or morepulses may be created by a common mode current on one or more utilitylines threaded through the first and second cores; adjusting a currentto a compensation winding wound about the first and second cores tocancel out the one or more pulses on the sense winding; and determiningthe common mode current on the one or more utility lines as the currenton the compensation winding multiplied by a turn ratio between thecompensation winding and the sense winding.

In additional method embodiments, a saturation flux density of the firstcore may be substantially equal to the saturation flux density of thesecond core. A saturation flux density of the first core may be within10% of the saturation flux density of the second core. The first coremay have a lower saturation flux density than the second core, and thefirst drive winding may be provided with less current than the seconddrive winding such that the first core saturates at substantially thesame time as the second core.

Additional method embodiments may include: measuring one or more peaksof a rising edge of the sensed one or more pulses by a first sample andhold circuit; measuring one or more peaks of a falling edge of thesensed one or more pulses by a second sample and hold circuit;determining a difference in magnitude between an average of the peaks ofthe rising edges and an average of the peaks of the falling edges; andadjusting at least one of: the first high frequency square wave currentand the second high frequency square wave current based on thedetermined difference in magnitude, where the adjusted current maycompensate for a difference in a saturation flux density between thefirst core and the second core. Method embodiments may also include:providing a high frequency signal to the one or more utility lines bythe first drive winding; and measuring an amplitude of a current thatresults by the second drive winding, where the amplitude of the currentthat results may be proportional to a reciprocal of a ground loopimpedance. The high frequency signal driven by the first drive windingmay flow to a utility ground, to an electric vehicle service equipment(EVSE) through a ground wire, to ground filter capacitors of the EVSEand to ground filter capacitors of an electric vehicle (EV), to thesecond core, and to the first core. No signal may be measured by thesecond core if a resistance of the utility ground is too high or open.The common mode current in the utility line may be at least one of: anAC residual leakage current and a DC residual leakage current.

Exemplary system embodiments may include: a microcontroller; atransformer including: a first drive winding wound on a first core,where the first drive winding may be driven with a first high frequencysquare wave current by the microcontroller; a second drive winding woundon a second core, where the second drive winding may be driven with asecond high frequency square wave current by the microcontroller, andwhere the second high frequency square wave current may have an oppositepolarity of the first high frequency square wave current; a sensewinding wound across the first and second cores; and a compensationwinding wound across the first and second cores; one or more utilitylines, where the one or more utility lines may be threaded through amiddle of the first and second cores, where a common mode current in theone or more utility lines may cause one or more pulses to appear on thesense winding, where a current on the compensation winding may beadjusted by the microcontroller until the one or more pulses on thesense winding are cancelled out, and where the common mode current onthe one or more utility lines may be the adjusted current on thecompensation winding multiplied by a turn ratio between the compensationwinding and the sense winding.

Additional exemplary system embodiments may include: an electric vehiclesupply equipment (EVSE), where the microcontroller, transformer, and oneor more utility lines are part of the EVSE; a relay, where the relay ispart of the EVSE; where the microcontroller may determine if the commonmode current exceeds a set threshold, where the microcontroller may senda signal to a relay to cut power between the EVSE and a utility when thedetermined set threshold is exceeded. The first drive winding may applya high frequency signal to the one or more utility lines, where thesecond drive winding may measure an amplitude of a current that results,where the amplitude of the current that results may be proportional to areciprocal of a ground loop impedance, where the high frequency signaldriven by the first drive winding may flow to a utility ground, to theEVSE through a ground wire, to ground filter capacitors of the EVSE andto ground filter capacitors of an electric vehicle (EV), to the secondcore, and to the first core.

BRIEF DESCRIPTION OF THE DRAWINGS

The components in the figures are not necessarily to scale, emphasisinstead being placed upon illustrating the principals of the invention.Like reference numerals designate corresponding parts throughout thedifferent views. Embodiments are illustrated by way of example and notlimitation in the figures of the accompanying drawings, in which:

FIG. 1 depicts an electrical diagram of an exemplary transformer fordetecting residual leakage current;

FIG. 2 depicts an exemplary transformer for detecting residual leakagecurrent having two cores shown side-by-side;

FIG. 3 depicts a graph of voltage on an exemplary sense winding andcurrent in exemplary drive windings as cores of an exemplary transformerare driven in and out of saturation;

FIG. 4 depicts two sample and hold circuits for an exemplary sensewinding;

FIG. 5 depicts an idealized B-H curve of two poorly matched cores of atransformer driven in unison;

FIG. 6 depicts a graph of drive current and voltage on a sense windingfor two poorly matched cores of a transformer driven in unison;

FIG. 7 depicts a B-H curve of two well-matched cores of a transformerdriven in unison;

FIG. 8 depicts a graph of drive current and voltage on a sense windingfor two well-matched cores of a transformer driven in unison with a DCleakage current present;

FIG. 9 depicts an exemplary circuit for balancing two cores of atransformer with individual drive currents;

FIG. 10 depicts a circuit of exemplary drive winding drivers;

FIG. 11 depicts an exemplary flip flop circuit for changing polarity ona drive command signal and its inverse;

FIG. 12 depicts a circuit of an exemplary compensation winding of atransformer;

FIG. 13 depicts a circuit of an exemplary ground loop of an electricvehicle supply equipment (EVSE);

FIG. 14 depicts a circuit of an exemplary ground impedance monitoring(GMI) detector;

FIG. 15 depicts a graph of drive current, output voltage on a sensewinding, and drive voltage of a transformer with well-matched cores andno current applied;

FIG. 16 depicts a graph of drive current, output voltage on a sensewinding, and drive voltage of a transformer with well-matched cores and6 mA current applied;

FIG. 17 depicts a graph of drive current, output voltage on a sensewinding, and drive voltage of a transformer with unmatched cores and nocurrent applied;

FIG. 18 depicts a graph of drive current, output voltage on a sensewinding, and drive voltage of a transformer with unmatched cores and 6mA current applied;

FIG. 19 depicts a circuit for generating a square wave for drivewindings of a transformer;

FIG. 20 depicts two sample and hold circuits for an exemplary sensewinding;

FIG. 21 depicts a circuit of an exemplary compensation controller of atransformer;

FIG. 22A depicts a graph of a sensor input and output for a 60 Hzsinewave;

FIG. 22B depicts a graph of a sensor input and output for a 60 Hztriangle wave;

FIG. 22C depicts a graph of a sensor input and output for a 0.6 Hzsquare wave;

FIG. 23 depicts a graph of a sense winding signal caused by an externalmagnetic field;

FIG. 24 depicts a graph of a leakage current producing a common modesignal;

FIG. 25 depicts an exemplary shielding of an exemplary transformer tocontain electromagnetic interference (EMI);

FIG. 26 depicts a circuit of an exemplary H-bridge driver;

FIG. 27 depicts a circuit of an exemplary compensation winding driver;

FIG. 28 depicts a circuit of an adjustable drive voltage;

FIG. 29 depicts a circuit for signal conditioning an exemplary sensewinding signal;

FIG. 30 depicts an exemplary alternate transformer embodiment having awindow for a fluxgate;

FIG. 31 depicts a flowchart of an exemplary residual current detecting(RCD) method;

FIG. 32 depicts a flowchart of an exemplary ground monitor interrupter(GMI) method; and

FIG. 33 depicts an exemplary system having residual current detecting(RCD) and ground monitor interrupter (GMI) to cut power between autility and an electric vehicle if a fault is detected.

DETAILED DESCRIPTION

The present system allows for a DC and AC sensitive transformer fordetection of residual leakage current, and associated drive circuitry,which is also able to measure the impedance of the ground connection.The system can measure leakage currents as small as 6 mA with submilliamp accuracy in the presence of charging currents as high as 80 A.

FIG. 1 depicts an electrical diagram 100 of an exemplary transformer fordetecting residual leakage current. The transformer includes twosaturable magnetic cores 102, 104. The cores may be made of a highly“square” magnetic material such as permalloy, metglass, supermalloy,nanoperm, mu-metal, etc. The transformer also includes one or moreprimary conductors 106. The transformer measures the common mode currenton the one or more primary conductors 106. A compensation winding 108may be wound on both cores 102, 104. The compensation winding 108 may beused to linearize the measurement of the common mode current. A sensewinding 110 may also be wound on both cores. The sense winding may beused to determine a magnitude and direction of the common mode currenton the one or more primary conductors 106. The transformer may alsoinclude a first drive winding 112 on the first core 102 and a seconddrive winding 114 on the second core 104. The drive windings 102, 104may be used to drive their respective cores 102, 104 in and out ofsaturation. The drive windings 102, 104 may also be used to performground monitor interrupter (GMI) source and residual current detection(RCD) functions.

FIG. 2 depicts an exemplary transformer 200 for detecting residualleakage current having two cores 202, 204 shown side-by-side. A firstcore 202 and a second core 204 may be made from a square hard saturatingmaterial, such as permalloy or metglass. The first core 202 and thesecond core 204 should reasonably well matched, particularly theirsaturation flux densities (Bmax). A first drive winding 206 is wound onthe first core 202. A second drive winding 208 is wound on the secondcore 204. A sense winding 210 is wound across both cores 202, 204. Acompensation winding 212 is also wound across both cores 202, 204. Autility line 214 is threaded through the middle of both cores 202, 204.The utility line 214 may be an AC conductor of an electric vehiclesupply equipment (EVSE). The transformer 200 may be placed about theutility line 214 between a utility power source 222 and an electricvehicle (EV) 224. The magnetic field direction 218 of the first core 202and the magnetic field direction 220 of the second core 204 are shownwith arrows.

The cores 202, 204 are displayed side-by-side for illustration purposes.In some embodiments, the cores 202, 204 may be stacked on top of oneanother such that the first core 202 is substantially parallel to thesecond core 204.

The transformer 200 may provide residual current detection (RCD)functionality. Each of the drive windings 206, 208 may be driven with ahigh frequency square wave current 216. The current 216 may drive thecores 202, 204 into saturation. Once the cores saturate, the polarity ofthe drive current 216 may be reversed. As a result, the net flux throughthe sense winding 210 is zero since the flux from the drive currents206, 208 is identical in the first core 202 and the second core 204, butof opposite polarity.

When a common mode, or leakage, current is present in the utility line214, it adds to the flux in one core and subtracts from the flux in theother. This change in flux will cause one core to saturate before theother core, and the flux through the sense winding 210 no longercancels. When one core saturates and the other doesn't saturate, thecurrent in the drive windings 206, 208 will couple through thenon-saturated core into the sense winding 210. Pulses will appear on thesense winding 210 every time the cores 202, 204 are driven intosaturation. The amplitude and polarity of the pulses are indicative ofthe common mode current on the utility line 214.

FIG. 3 depicts a graph 300 of voltage on an exemplary sense winding 302and current in exemplary drive windings 304 as cores of an exemplarytransformer are driven in and out of saturation.

FIG. 4 depicts two sample and hold circuits 400 for an exemplary sensewinding. In RCD mode, the sense winding 402 is connected through aswitch 404 to a burden resistor 406 and an amplifier 408. The voltage ofthe peaks on the sense winding, as shown in FIG. 3, is measured by twosample and hold (S/H) circuits 410, 412 that are alternately triggeredby the rising edge the drive command signal 414, as shown in FIG. 3. Theacquisition time of the S/H 410, 412 is matched to a pulse width ofpulses on the sense winding 402.

FIG. 5 depicts an idealized B-H curve 500 of two poorly matched cores502, 504 of a transformer driven in unison. The B-H curve shows therelationship between magnetic flux density (B) and magnetic fieldstrength (H) for each of the core 502, 504 materials. The first core 502has a higher saturation flux density (Bsat) than the second core 504.Therefore, the first core 502 saturates later than the second core 504.A drive current on the first core 502 would couple into a sense windingof the transformer every time the cores 502, 504 saturate.

The disclosed transformer relies on the flux in the two cores beingsubstantially equal, and so the cores need to be reasonably wellmatched, particularly their saturation flux density (Bmax). If the coresare not well matched, a spurious signal may appear on the sense windingeven when there is no current flowing in the primary conductors.Temperature variation, age related drift, and external magnetic fieldsmay cause similar spurious signals. These spurious signals must bedetected and compensated for to prevent offsets in the leakage currentmeasurement.

The signal from mismatched cores is different from a signal from anactual current flowing on the primary. In the case of a core mismatch,the core with the lower saturation flux density (Bsat) will alwayssaturate first regardless of drive polarity, as long as there's nocurrent in the primary. Having one core saturate before the other willresult in the drive current from the other core coupling into the sensewinding every time the core saturates. Since the drive currentalternates between positive and negative, this will result in pulses onthe sense winding of alternating polarity.

FIG. 6 depicts a graph 600 of drive current 602 and voltage 604 on asense winding for two poorly matched cores of a transformer driven inunison. Mismatched cores, temperature drift and external magnetic fieldsmay cause pulses of alternating polarity on the sense winding when thetwo cores of the transformer saturate.

FIG. 7 depicts a B-H curve 700 of two well-matched cores 702, 704 of atransformer driven in unison. Two well-matched cores 702, 704 are shownin the presence of a common mode current on the primaries. When apositive drive current (H) is applied, the second core 704 saturatesfirst and a drive current couples into the sense winding through thefirst core 702. When a negative drive current (H) is applied, the firstcore 702 saturates first and a drive current couples through the secondcore 704. The second core 704 is wound with opposite polarity from thefirst core 702 so the resulting pulse on the sense winding is againpositive.

For matched cores 702, 704 in the presence of a common mode current onthe primary, the core that saturates will alternate depending on thedrive current direction. This alternating saturation results in thecurrent in the first drive winding and the current in the second drivewinding alternatingly coupling into the sense winding. The two drivewindings are wound in opposing directions so the end result is that thepulses in the sense winding are of the same polarity.

FIG. 8 depicts a graph 800 of drive current 802 and voltage 804 on asense winding for two well-matched cores of a transformer driven inunison with a DC leakage current present. A common mode current inprimary conductors results in pulses of the same polarity when the coressaturate.

FIG. 9 depicts an exemplary circuit 900 for balancing two cores of atransformer with individual drive currents. Both cores will never beperfectly matched. Compensating for some degree of mismatching betweenthe cores may be achieved by driving the two cores with individual drivecurrent. The core with the lower saturation flux density (Bsat) may bedriven with less current than the core with higher Bsat. By varying thecurrent to each of the cores based on their Bsat, both cores may be madeto saturate at the same time and spurious signals may be eliminated orgreatly reduced. Magnetic field (H) (At/m) is a function of current, andcurrent through an inductor is a function of the product of voltage andtime (Vs). Regulating the voltage that is applied to the drive windingallows for compensating for differences in Bsat between the two cores.

FIG. 10 depicts a circuit 1000 of exemplary drive winding drivers. Aproportional-integral-derivative (PID), or similar, controller may beused to regulate out a difference in magnitude between two pulsesmeasured by the sample and hold circuit as shown in FIG. 4.

An output of the balance controller 1002, as shown in FIG. 9, may beadded 1004 to the magnitude of a drive command signal 1008 of one core,and subtracted from 1006 the magnitude of a drive command signal 1010 ofthe other core. The drive commands 1008, 1010 may be fed throughselector switches 1012, 1014 to output drive buffers 1016, 108 that feedthe drive windings 1020, 1022 through current limiting resistors 1024,1026. The current through each drive winding 1020, 1022 is measured1028, 1030; rectified; and sent to a comparator 1032, 1034 that comparesit against a saturation threshold. When the drive current magnitude ishigher than the set threshold, the core has saturated and the output ofthe comparator 1032, 1034 goes high.

FIG. 11 depicts an exemplary flip flop circuit 1100 for changingpolarity on a drive command signal and its inverse. The output of thetwo comparators causes a flip flop circuit to change polarity on thedrive command signal (Drive) and it's inverse (!Drive).

FIG. 12 depicts a circuit 1200 of an exemplary compensation winding of atransformer. The amplitude and polarity of the pulses on a sense windingof the transformer give an indication of the common mode current flowingon primary conductors. Due to the nonlinear nature of magnetic cores,the pulses on the sense winding do not provide an accurate measurement.In order to get an accurate measurement, a compensation winding 1202 isrequired. The current in the compensation winding 1202 is adjusted untilthe pulses on the sense winding go away, which can only happen when thecurrent in the compensation winding 1202 perfectly matches the commonmode current in the primary conductors. The primary current cantherefore be calculated as the current in the compensation windingmultiplied by the turn ratio between the two.

A PID, or similar, controller may be used to regulate out the averagevoltage of the pulses on the sense winding. The output of a regulatormay be used to control a current source that drives a current throughthe compensation winding 1202 in RCD mode. The leakage current 1204, orthe common mode current, in the primary conductors may be accuratelydetermined as the output of the regulator multiplied by the turn-ratioof the compensation windings 1202 to the primary windings.

FIG. 13 depicts a circuit 1300 of an exemplary ground loop of anelectric vehicle supply equipment (EVSE) 1301. For safety reasons,regulatory agencies, such as UL headquartered in Northbrook, Ill.,requires the EVSE 1301 to verify that the EVSE 1301 and an electricvehicle (EV) 1302 are both properly grounded 1304. The ground connection1304 between vehicle 1302 and EVSE 1301 may be verified by a pilothandshake signal, such as that specified in SAE J1772. A groundresistance 1306 between a utility 1308 and the EVSE 1301 must however beverified by other means.

In ground monitor interrupter (GMI) mode, the fluxgate transformer maybe reconfigured as a signal generator and detector. A first core of thetransformer and its respective drive winding 1310 may be used to apply ahigh frequency signal to the utility lines 1312, 1314. The second coreof the transformer and its respective drive winding 1316 may be used tomeasure the amplitude of a current that results. The amplitude of theresulting current is proportional to a reciprocal of the ground loopimpedance.

The high frequency current generated by the first drive winding 1310flows through the utility transformer into ground 1304; back to the EVSEthrough the ground wire 1318; to ground filter capacitors 1320, 1322,1324 of the EVSE 1301 and EV 1302, respectively; through the second coreand back to the first core. If the resistance of the ground connectionis too high, or open, no current can flow and no signal will be measuredby the second core.

During the GMI test, the sense winding and compensation winding must beopen circuit, which is accomplished by selector switches 1326, 1328. Thedrive circuit for the first drive winding 1310 is switched over to ahigh frequency signal source. The drive circuit for the second drivewinding 1316 is held in a high impedance state.

FIG. 14 depicts a circuit 1400 of an exemplary ground impedancemonitoring (GMI) detector. The second drive winding 1316 is alsoconnected to a detector circuit 1400 through DC blocking capacitors1402, 1404.

An amplifier 1406 buffers the signal from the drive winding 1316 andfeeds it through a bandpass filter 1408 with a center frequency aroundthe high frequency source feeding the first drive winding 1316. Thefiltered signal is fed to a mixer 1410, the local oscillator input 1412of which is fed by a high frequency signal. The high frequency signal1412 is the same frequency as the drive, but with a different phaseshift. The output of the mixer is integrated 1413 in order to measurethe resulting DC signal magnitude. The output of the integrator 1414 isnow proportional to the reciprocal of the ground loop impedance. Thecapacitive or inductive nature of the ground impedance can be determinedby adjusting the phase shift of the local oscillator 1412.

FIG. 15 depicts a graph 1500 of drive current 1502, output voltage 1504on a sense winding, and drive voltage 1506 of a transformer withwell-matched cores and no current applied. For a matched core test, asensor was constructed from a pair of well matched cores (<0.5%). Thedrive winding may have 10 turns per core, the sense winding have may 10turns, and a primary wire may be fed through the opening of both coresto measure the DC current in the primary wire. The drive winding isdriven from a function generator at 10 kHz through a DC blockingcapacitor and a 10 ohm resistor for measuring current. The outputvoltage 1504 is close to 0 as the flux in the two cores cancel.

FIG. 16 depicts a graph 1600 of drive current 1602, output voltage 1604on a sense winding, and drive voltage 1606 of a transformer withwell-matched cores and 6 mA current applied. A significant outputvoltage 1604 can be seen on the sense winding when the fault current isapplied, as compared to the output voltage on the sense winding with nocurrent applied as in FIG. 15.

FIG. 17 depicts a graph 1700 of drive current 1702, output voltage 1704on a sense winding, and drive voltage 1706 of a transformer withunmatched cores and no current applied. With no DC fault currentapplied, the unmatched cores produce noticeably greater signal amplitudethan the matched cores, as shown in FIG. 15. The cores shown in graph1700 have a matching error of 10%. Ideally, the cores may have amatching error of 5% or lower, but the cores may be balanced with amatching error of up to 10%. The transformer with these unmatched coreshas twenty-turn drive windings, twenty-turn sense windings, and a singleturn compensation winding on only one of the cores.

FIG. 18 depicts a graph of drive current 1802, output voltage 1804 on asense winding, and drive voltage 1806 of a transformer with unmatchedcores and 6 mA current applied. With 6 mA of DC fault current applied,the unmatched transformer produces less symmetrical output for risingand falling transition than the matched sensor, as shown in FIG. 16, butthe signal amplitude remains significant. The most consistent signalcomponent is the rapid transition of the drive current 1802 and outputvoltage 1804 around the rising edge of the drive voltage 1806 waveform.This signal may be fully and consistently canceled by adjusting thecurrent in the compensation winding.

In some embodiments, the transformer may be subject to variations intemperature. After being heated for five minutes, the signal remainedconsistent. If anything, the amplitude of the signal became moresymmetrical at the rising and falling edges. The compensation currentnecessary to cancel the output remained consistent with no significant(<10%) drift at 6 mA fault current. Both cores of the transformer tendto change temperature at the same rate due to their proximity and so anyvariations are largely cancelled out.

FIG. 19 depicts a circuit 1900 for generating a square wave for drivewindings 1901, 1903 of a transformer. An analog device may beconstructed to generate a signal for the drive windings using: a quadoperational amplifier (op-amp) 1902; a sample and hold integratedcircuit (IC) 1904; transistors 1906, 1908; potentiometers 1910, 1912 fortuning; resistors 1914, 1916, 1918, 1920, 1922; and capacitors 1924.

The drive circuit 1900 generates the square wave for the drive windings1901, 1903. The op-amp 1902 used as a comparator applies a voltage tothe drive windings 1901, 1903 through a buffer. When the cores saturate,the current rises rapidly and the voltage across Rsense 1922 exceeds thetrip threshold for the comparator, which then trips and reverses theoutput voltage. This arrangement ensures that the cores are alwaysdriven to the same level of saturation regardless of supply voltagevariations or core parameters.

A second comparator 1904 with an adjustable trip threshold is used togenerate the sample pulse for the sample and hold circuit. The secondcomparator 1904 may be adjusted to trip just before the firstcomparator. The potentiometer 1910 is connected in parallel with thedrive windings 1901, 1903, which makes it possible to compensate for theeffect of poorly matched cores. The amount of current through each corecan be adjusted so that the cores always saturate at the same time.

FIG. 20 depicts two sample and hold circuits 2000 for an exemplary sensewinding 2002. A single sample and hold integrated circuit (IC) 2004 maybe very sensitive to external magnetic fields and temperature drift. Asecond sample and hold IC 2006 allows both a rising edge 2008 and afalling edge 2010 of a pulse 2012, 2014 to be sampled. The average ofthe rising edge 2008 and the falling edge 2010 may be fed to aproportional-integral (PI) regulator.

FIG. 21 depicts a circuit 2100 of an exemplary compensation controllerof a transformer. The PI regulator tries to cancel out the signal fromthe sense winding by running a current through a compensation winding2102, the current through the compensation winding 2102 is proportionalto the DC leakage current when the PI error is zero. The voltage acrossthe burden resistor Rburden 2104 is therefore a direct measurement ofthe leakage current.

FIG. 22A depicts a graph 2200 of a sensor input 2206 and output 2208 fora 60 Hz sinewave. FIG. 22B depicts a graph 2202 of a sensor input 2210and output 2212 for a 60 Hz triangle wave. FIG. 22C depicts a graph 2204of a sensor input 2214 and output 2216 for a 0.6 Hz square wave. Thetransformer is able to measure up to 600 Hz without significantreduction in gain, and better tuning of the PI could improve thatfurther.

FIG. 23 depicts a graph 2300 of a sense winding voltage 2302 and current2304 signals caused by an external magnetic field. The transformer maybe sensitive to external magnetic fields. External magnetic fields mayhave the same effect as poorly matched cores and temperature drift.External magnetic fields produce a differential signal between risingand falling edge pulses.

FIG. 24 depicts a graph 2400 of a leakage voltage 2402 and current 2404signals producing a common mode signal. The leakage signals 2402, 2404produces a common mode signal. Adding a second sample and hold IC andregulating the average of the two pulses drastically reduces sensitivityto core matching, temperature drifts, and external fields. Thedifferential signal caused by external fields may be tuned out using acore balance potentiometer. Dynamic control over the core balancingallows for tuning of the cores in response to changing externalconditions. Tuned cores may produce less noise on the AC line and may beless susceptible to the noise on the AC line. Using two samplingcircuits may eliminate spurious signals from core mismatch, temperaturedrift, and external magnetic fields.

FIG. 25 depicts an exemplary shielding 2500 of an exemplary transformer2502 to contain electromagnetic interference (EMI). A magnetic shield2500 made of soft iron may be placed around the transformer 2502 toreduce and/or eliminate spurious signals caused by external magneticfields. A cylindrical shield, such as a steel pipe, may be placed aroundthe transformer 2502 to reduce the effects of external magnetic fieldsby an order of magnitude. The shielding 2500 may also contain any EMIcaused by the constant switching of the drive windings and saturatingcores. The magnetic shield 2500 greatly reduces sensitivity to externalmagnetic fields.

FIG. 26 depicts a circuit 2600 of an exemplary H-bridge driver. AnI_DriveX signal is a measurement of the drive current and may be fed toan analog comparator. A drive winding driver may use an off-the-shelfH-bridge. This circuit 2600 may not have GMI capability.

FIG. 27 depicts a circuit 2700 of an exemplary compensation windingdriver. A compensation winding current may be precisely controlled, asit provides the measurement of the leakage current. The circuit 2700takes a pulse width modulation (PWM) proportional to desired currentwhere 50%=0 current as its input. The PWM is applied to R2 2702. Thefiltered voltage across R4 2704 sets the current through the Rload 2706,which is the compensation winding. R3 2708 provides a minimum impedanceand improves the effect of the filter capacitor C5 2710. R5 2712 and R62714 set the 0 current point. Rload 2706 is the compensation winding.This circuit 2700 may not have GMI functions.

FIG. 28 depicts a circuit 2800 of an adjustable drive voltage. The drivevoltage for each core may be adjustable in order to compensate for corematching and drift. Each H bridge IC may supplied by a LM317 regulator2802. The processor may reduce the output voltage of the regulator byPWM. The output voltage may be adjusted from 8-12V. Adjusting the outputvoltage may be used to adjust the drive voltage for the drive winding,using an adjustable voltage regulator to feed the H-bridge.

FIG. 29 depicts a circuit 2900 for signal conditioning an exemplarysense winding signal. A sense winding is connected to a 100 ohm burdenresistor 2902, which may be biased at a VCC midpoint using aresistive/capacitive divider. The voltage across the burden resistor2902 may spike up to +−1V during normal operation. A Schottky diode 2904protects an ADC input 2906 from abnormal spikes. This circuit 2900 maynot have GMI functionality.

FIG. 30 depicts an exemplary alternate transformer 3000 embodimenthaving a window 3002 for a fluxgate. This transformer 3000 may not havea GMI mode. The transformer 3000 may have a magnetic core 3004 of a highmu material with the window 3002 for a fluxgate cut into it. The window3002 goes through the entire magnetic core 3004. A fluxgate drivewinding 3006 may saturate the left and right halves of the window at 10kHz with opposite polarities. The drive winding 3006 may be present oneach leg 3014, 3016 of the window 3002. There may be about twenty turnsof the drive winding 3006 on each leg 3014, 3016 of the window. In thepresence of a magnetic field caused by DC leakage current in a utilityline 3008, a pulsating voltage appears on a sense winding 3010. Theleakage current adds to the flux of one of the legs 3014 and subtractsfrom the flux of the other leg 3016, which results on a voltage on thesense winding 3010. The sense winding 3010 may be wound across both legsof the magnetic core 3004, but not through the window 3002. The Earth'smagnetic flux may not significantly affect the reading (0.1-0.2%). Thistransformer is small, inexpensive, has a simple installation requiringonly one turn of the utility line 3008, it is EMI immune and has lowemissions, it has a high bandwidth and will measure AC leakage and DCleakage, and has a low sensitivity to external magnetic fields.

A compensation winding 3012 may be driven by a microprocessor to cancelout the voltage. Any pulses on the sense winding 3010 may be provided toa microprocessor so that they may be cancelled out by the compensationwinding 3012. The microprocessor may determine a leakage current on theutility line 3008 as the amount of compensation current needed in thecompensation winding 3012 to cancel out the pulses on the sense winding3010 is equal to the leakage current on the utility line 3008.

FIG. 31 depicts a flowchart of an exemplary residual current detecting(RCD) method 3100. The method 3100 may include providing a first highfrequency square wave current to a first drive winding wound on a firstcore (step 3102). The method may also include providing a second highfrequency square wave current to a second drive winding wound on asecond core (step 3104). The second high frequency square wave currentmay have an opposite polarity of the first high frequency square wavecurrent. The method 3100 may then include sensing one or more pulses ona sense winding wound about the first and second cores (step 3106). Theone or more pulses may be created by a common mode current on one ormore utility lines threaded through the first and second cores. Themethod 3100 may then include adjusting a current to a compensationwinding wound about the first and second cores to cancel out the one ormore pulses on the sense winding (step 3106). The method 3100 may theninclude determining the common mode current on the one or more utilitylines as the current on the compensation winding multiplied by a turnratio between the compensation winding and the sense winding (step3108).

In some embodiments, a saturation flux density of the first core may besubstantially equal to the saturation flux density of the second core.In other embodiments, a saturation flux density of the first core iswithin 10% of the saturation flux density of the second core. If thefirst core has a lower saturation flux density than the second core,then the first drive winding may be provided with less current than thesecond drive winding such that the first core saturates at substantiallythe same time as the second core. One or more peaks of a rising edge ofthe sensed one or more pulses may be measured by a first sample and holdcircuit. One or more peaks of a falling edge of the sensed one or morepulses may be measured by a second sample and hold circuit. A differencein magnitude between an average of the peaks of the rising edges and anaverage of the peaks of the falling edges may be determined. At leastone of: the first high frequency square wave current and the second highfrequency square wave current may be adjusted based on the determineddifference in magnitude, and the adjusted current may compensate for adifference in a saturation flux density between the first core and thesecond core. The common mode current in the utility line may be at leastone of: an AC residual leakage current and a DC residual leakagecurrent.

FIG. 32 depicts a flowchart of an exemplary ground monitor interrupter(GMI) method 3200. The method 3200 may include providing a highfrequency signal to one or more utility lines by a first drive winding(step 3202). The method 3200 may also include measuring an amplitude ofa current that results by the second drive winding (step 3204). Theamplitude of the current that results may be proportional to areciprocal of a ground loop impedance. The high frequency signal drivenby the first drive winding may flow to a utility ground, to an electricvehicle service equipment (EVSE) through a ground wire, to ground filtercapacitors of the EVSE and to ground filter capacitors of an electricvehicle (EV), to the second core, and to the first core. If a resistanceof the utility ground is too high or open, then no signal may bemeasured by the second core.

FIG. 33 depicts an exemplary system 3300 having residual currentdetecting (RCD) and ground monitor interrupter (GMI) to cut powerbetween a utility 3302 and an electric vehicle (EV) 3304 if a fault isdetected. The system may include an electric vehicle supply equipment(EVSE) 3306 to charge the EV 3304 with power provided by the utility3302. While this system is described with reference to an EVSE, it maybe applied to other electrical systems requiring RCD and GMIcapabilities, such as a wall socket in a building. The EVSE may includea current sensing transformer 3308. The transformer may include a firstcore; a first drive winding wound on the first core; a second core; asecond drive winding wound on the second core; a sense winding woundacross the first and second cores; and a compensation winding woundacross the first and second cores. The first and second cores may bearranged substantially parallel to one another. A saturation fluxdensity of the first core may be substantially equal to the saturationflux density of the second core. One or more utility lines 3314, 3316,depicted as solid lines and dashed lines in the EVSE 3306, may bethreaded through a middle of the first and second cores of thetransformer 3308.

In RCD mode, a microcontroller 3310 may drive the first drive windingwith a first high frequency square wave current. The microcontroller3310 may also drive the second drive winding with a second highfrequency square wave current. The second high frequency square wavecurrent may have an opposite polarity of the first high frequency squarewave current. A common mode current, such as an AC residual leakagecurrent and/or a DC residual leakage current, in the one or more utilitylines 3314, 3316 may cause one or more pulses to appear on the sensewinding of the transformer 3308. These pulses may be detected by themicrocontroller 3310. In response to the pulses, a current on thecompensation winding of the transformer 3308 is adjusted by themicrocontroller 3310 until the one or more pulses on the sense windingof the transformer 3308 are cancelled out. The microcontroller maydetermine the common mode current on the one or more utility lines 3314,3316 as the adjusted current on the compensation winding of thetransformer 3308 multiplied by a turn ratio between the compensationwinding and the sense winding of the transformer 3308.

The microcontroller 3310 may determine if the common mode currentexceeds a set threshold. The microcontroller 3310 may send a signal to arelay 3312 to cut power between the EVSE 3306 and/or the EV 3304 and theutility 3302 when the determined set threshold is exceeded. Thethreshold may be 6 mA for DC current and 20 mA for AC current. Thethresholds may be varied based on the application and any laws set byregulatory agencies.

In GMI mode, the microcontroller 3310 may drive the first drive windingof the transformer 3308 with a high frequency signal to the one or moreutility lines 3314, 3316. The second drive winding of the transformer3308 may measure an amplitude of a current that results, which may beproportional to a reciprocal of a ground loop impedance. wherein thehigh frequency signal driven by the first drive winding flows to autility ground, to the EVSE through a ground wire, to ground filtercapacitors of the EVSE and to ground filter capacitors of an electricvehicle (EV), to the second core, and to the first core. No signal maybe measured by the second core if a resistance of the utility ground istoo high or open. A minimum threshold signal measured by the second coremay be set to switch off power. In some embodiments, the minimumthreshold signal may be 0.8V, which may correspond to 150-300 ohm groundloop resistance. In other embodiments, the minimum threshold signal maybe set to correspond to a ground loop resistance of 1500 ohm or more.

The EVSE 3306 may switch between RCD mode and GMI mode in order to testfor both conditions. In some embodiments, the EVSE 3306 may switch toGMI mode four times per second for a maximum duration of 300 us. To testfor correct operation of the RCD mode prior to closing the relay 3312,the microcontroller 3310 may command a current source for thecompensation winding to inject a test current. In other embodiments, atest button may included that connects a resistor between ground andline using a switch. The response time to cut power may be varied basedon the application and any regulatory requirements. The response timemay be a function of the leakage current magnitude. Power may be cut onleakage current in 1 ms and missing ground in 300 us. However, a quickertime to cut power may create unnecessary trips due to noise. While amicrocontroller 3310 is depicted in the system 3300, one or all of itsfunctions may be replaced by analog and logic circuitry in someembodiments as disclosed herein. Likewise, additional microcontrollersmay be used to accomplish different functions.

It is contemplated that various combinations and/or sub-combinations ofthe specific features and aspects of the above embodiments may be madeand still fall within the scope of the invention. Accordingly, it shouldbe understood that various features and aspects of the disclosedembodiments may be combined with or substituted for one another in orderto form varying modes of the disclosed invention. Further it is intendedthat the scope of the present invention is herein disclosed by way ofexamples and should not be limited by the particular disclosedembodiments described above.

What is claimed is:
 1. A transformer comprising: a first drive windingwound on a first core, wherein the first drive winding is driven with afirst high frequency square wave current; a second drive winding woundon a second core, wherein the second drive winding is driven with asecond high frequency square wave current, and wherein the second highfrequency square wave current has an opposite polarity of the first highfrequency square wave current; a sense winding wound across the firstand second cores; and a compensation winding wound across the first andsecond cores; wherein one or more utility lines are threaded through amiddle of the first and second cores, wherein a common mode current inthe one or more utility lines causes one or more pulses to appear on thesense winding, wherein a current on the compensation winding is adjusteduntil the one or more pulses on the sense winding are cancelled out, andwherein the common mode current on the one or more utility lines is theadjusted current on the compensation winding multiplied by a turn ratiobetween the compensation winding and the sense winding.
 2. Thetransformer of claim 1, wherein a net flux through the sense winding iszero if no common mode current is present on the one or more utilitylines.
 3. The transformer of claim 1, wherein a saturation flux densityof the first core is substantially equal to the saturation flux densityof the second core.
 4. The transformer of claim 1, wherein a saturationflux density of the first core is within 10% of the saturation fluxdensity of the second core.
 5. The transformer of claim 1, wherein thefirst core has a lower saturation flux density than the second core, andwherein the first drive winding is driven with less current than thesecond drive winding such that the first core saturates at substantiallythe same time as the second core.
 6. The transformer of claim 1, whereinthe first drive winding applies a high frequency signal to the one ormore utility lines, wherein the second drive winding measures anamplitude of a current that results, and wherein the amplitude of thecurrent that results is proportional to a reciprocal of a ground loopimpedance.
 7. The transformer of claim 1, wherein the common modecurrent in the utility line is at least one of: an AC residual leakagecurrent and a DC residual leakage current.
 8. The transformer of claim1, wherein the first core is disposed substantially parallel to thesecond core.
 9. A method comprising: providing a first high frequencysquare wave current to a first drive winding wound on a first core;providing a second high frequency square wave current to a second drivewinding wound on a second core, wherein the second high frequency squarewave current has an opposite polarity of the first high frequency squarewave current; sensing one or more pulses on a sense winding wound aboutthe first and second cores, wherein the one or more pulses are createdby a common mode current on one or more utility lines threaded throughthe first and second cores; adjusting a current to a compensationwinding wound about the first and second cores to cancel out the one ormore pulses on the sense winding; and determining the common modecurrent on the one or more utility lines as the current on thecompensation winding multiplied by a turn ratio between the compensationwinding and the sense winding.
 10. The method of claim 9, wherein asaturation flux density of the first core is substantially equal to thesaturation flux density of the second core.
 11. The method of claim 10,wherein a saturation flux density of the first core is within 10% of thesaturation flux density of the second core.
 12. The method of claim 11,wherein the first core has a lower saturation flux density than thesecond core, and wherein the first drive winding is provided with lesscurrent than the second drive winding such that the first core saturatesat substantially the same time as the second core.
 13. The method ofclaim 11, further comprising: measuring one or more peaks of a risingedge of the sensed one or more pulses by a first sample and holdcircuit; measuring one or more peaks of a falling edge of the sensed oneor more pulses by a second sample and hold circuit; determining adifference in magnitude between an average of the peaks of the risingedges and an average of the peaks of the falling edges; and adjusting atleast one of: the first high frequency square wave current and thesecond high frequency square wave current based on the determineddifference in magnitude, wherein the adjusted current compensates for adifference in a saturation flux density between the first core and thesecond core.
 14. The method of claim 9, further comprising: providing ahigh frequency signal to the one or more utility lines by the firstdrive winding; and measuring an amplitude of a current that results bythe second drive winding, wherein the amplitude of the current thatresults is proportional to a reciprocal of a ground loop impedance. 15.The method of claim 14, wherein the high frequency signal driven by thefirst drive winding flows to a utility ground, to an electric vehicleservice equipment (EVSE) through a ground wire, to ground filtercapacitors of the EVSE and to ground filter capacitors of an electricvehicle (EV), to the second core, and to the first core.
 16. The methodof claim 15, wherein no signal is measured by the second core if aresistance of the utility ground is too high or open.
 17. The method ofclaim 9, wherein the common mode current in the utility line is at leastone of: an AC residual leakage current and a DC residual leakagecurrent.
 18. A system comprising: a microcontroller; a transformercomprising: a first drive winding wound on a first core, wherein thefirst drive winding is driven with a first high frequency square wavecurrent by the microcontroller; a second drive winding wound on a secondcore, wherein the second drive winding is driven with a second highfrequency square wave current by the microcontroller, and wherein thesecond high frequency square wave current has an opposite polarity ofthe first high frequency square wave current; a sense winding woundacross the first and second cores; and a compensation winding woundacross the first and second cores; one or more utility lines, whereinthe one or more utility lines are threaded through a middle of the firstand second cores, wherein a common mode current in the one or moreutility lines causes one or more pulses to appear on the sense winding,wherein a current on the compensation winding is adjusted by themicrocontroller until the one or more pulses on the sense winding arecancelled out, and wherein the common mode current on the one or moreutility lines is the adjusted current on the compensation windingmultiplied by a turn ratio between the compensation winding and thesense winding.
 19. The system of claim 18 further comprising: anelectric vehicle supply equipment (EVSE), wherein the microcontroller,transformer, and one or more utility lines are part of the EVSE; arelay, wherein the relay is part of the EVSE; wherein themicrocontroller determines if the common mode current exceeds a setthreshold, wherein the microcontroller sends a signal to a relay to cutpower between the EVSE and a utility when the determined set thresholdis exceeded.
 20. The system of claim 19, wherein the first drive windingapplies a high frequency signal to the one or more utility lines,wherein the second drive winding measures an amplitude of a current thatresults, wherein the amplitude of the current that results isproportional to a reciprocal of a ground loop impedance, wherein thehigh frequency signal driven by the first drive winding flows to autility ground, to the EVSE through a ground wire, to ground filtercapacitors of the EVSE and to ground filter capacitors of an electricvehicle (EV), to the second core, and to the first core.